Problem Note 50632: A "java.lang.Integer cannot be cast to java.lang.Double" exception occurs when you import a test case into SAS® Real-Time Decision Manager 6.1
SAS® Customer Intelligence Studio enables you to import a test table to test SAS Real-Time Decision Manager campaigns. When you try to import a test case table, a numeric column of type integer causes the following exception in the SASCustIntelCore log:
"java.lang.Integer cannot be cast to java.lang.Double"
You can work around the problem by creating the test case table as a type double. See the sample code on the Full Code tab.
Or you can access the hot fix. Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | SAS Real-Time Decision Manager | Microsoft® Windows® for x64 | 6.1 | 6.3 | 9.3 TS1M2 | 9.4 TS1M0 |
Microsoft Windows 8 Enterprise x64 | 6.1 | 6.3 | 9.3 TS1M2 | 9.4 TS1M0 |
Microsoft Windows 8 Pro x64 | 6.1 | 6.3 | 9.3 TS1M2 | 9.4 TS1M0 |
Microsoft Windows Server 2008 R2 | 6.1 | 6.3 | 9.3 TS1M2 | 9.4 TS1M0 |
Microsoft Windows Server 2008 for x64 | 6.1 | 6.3 | 9.3 TS1M2 | 9.4 TS1M0 |
Microsoft Windows Server 2012 Datacenter | 6.1 | 6.3 | 9.3 TS1M2 | 9.4 TS1M0 |
Microsoft Windows Server 2012 Std | 6.1 | 6.3 | 9.3 TS1M2 | 9.4 TS1M0 |
Windows 7 Enterprise x64 | 6.1 | 6.3 | 9.3 TS1M2 | 9.4 TS1M0 |
Windows 7 Professional x64 | 6.1 | 6.3 | 9.3 TS1M2 | 9.4 TS1M0 |
64-bit Enabled AIX | 6.1 | 6.3 | 9.3 TS1M2 | 9.4 TS1M0 |
64-bit Enabled Solaris | 6.1 | 6.3 | 9.3 TS1M2 | 9.4 TS1M0 |
HP-UX IPF | 6.1 | 6.3 | 9.3 TS1M2 | 9.4 TS1M0 |
Linux for x64 | 6.1 | 6.3 | 9.3 TS1M2 | 9.4 TS1M0 |
Solaris for x64 | 6.1 | 6.3 | 9.3 TS1M2 | 9.4 TS1M0 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
The following sample SAS code creates CustomerID as a double type in the test case table.
data rtdmtest.import_Tests;
infile cards dlm=',';
format _test_name $50. CustomerID 8.1
ProdCatCode $9.
;
input _test_name $ CustomerID ProdCatCode $
;
cards;
Test1, 5505.0,Card
Test2,5506.0,Loan
Test3,5506.0,Mortgage
Test4,5507.0,Mortgage
Test5,5507.0,Savings
Test6,5508.0,Mortgage
Test7,5508.0,Mortgage
Test8,5508.0,Card
Test9,5509.0,Loan
;
The test case table numeric field needs to be in decimal format.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2013-09-25 13:07:32 |
Date Created: | 2013-08-05 12:11:43 |